<template>

  <div id="userLayout" :class="['user-layout-wrapper']">
    <div class="container">
      <h1 class='title'>智慧能源管控平台</h1>
      <div class="user-layout-content">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import { deviceMixin } from '@/store/device-mixin'
import SelectLang from '@/components/SelectLang'

export default {
  name: 'UserLayout',
  components: {
    SelectLang
  },
  mixins: [deviceMixin],
  mounted () {
    document.body.classList.add('userLayout')
  },
  beforeDestroy () {
    document.body.classList.remove('userLayout')
  }
}
</script>

<style lang="less" scoped>
#userLayout.user-layout-wrapper {
  height: 100%;

  &.mobile {
    .container {
      .main {
        max-width: 368px;
        width: 98%;
      }
    }
  }

  .container {
    width: 100%;
    min-height: 100%;
    position: relative;
    background: #f0f2f5 url(~@/assets/img/login/bg.png) no-repeat 50%;
    background-size: 100% 100%;
    //padding: 50px 0 84px;
    .title{
      color: #fff;
      position: absolute;
      left: 50%;
      top: 0;
      font-size: 36px;
      font-style: italic;
      letter-spacing: 10px;
      font-weight: bolder;
      transform: translateX(-50%);
    }


    .user-layout-content {
      width: 30vw;
      background: #ffffff;
      box-shadow: inset 0px 0px 8px 0px #404A5E;
      border-radius: 24px 24px 24px 24px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 106px;
      box-sizing: border-box;
      padding: 45px 52px;
    }

    a {
      text-decoration: none;
    }

  }
}
</style>
